package com.tencent.wxcloudrun.repository;

import com.tencent.wxcloudrun.model.Admin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface AdminRepository extends JpaRepository<Admin, Long> {
    Optional<Admin> findByUsername(String username);  // 通过用户名查询管理员
}
